﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace daonaite.Model.system.menu
{
    /// <summary>
    /// 菜单表
    /// </summary>
    public class sys_menu:BaseModel
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int id { get; set; }
        /// <summary>
        /// 父级序号
        /// </summary>
        public int fid { get; set; }
        /// <summary>
        /// 菜单名
        /// </summary>
        public string? menuName { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        public string? path { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string? icon { get; set; }

        /// <summary>
        /// 全路径, 逗号间隔
        /// </summary>
        public string? fullpath { get; set; }

        /// <summary>
        /// M-菜单  B-按钮
        /// </summary>
        public string? type { get; set; }

        /// <summary>
        /// Y-启用 N-未启用
        /// </summary>
        public string? ableFlag { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int order { get; set; }

        /// <summary>
        /// 不参与sql,子集
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<sys_menu>? child { get; set; }
    }
}
